import http from 'utilMethods/http'

const request = 'http://report.wsn2019.club/report_reminder'

const report_reminder = {

  //创建一个汇报的配置
  postCreateReportSetting(params) {
    return http.post(`${request}/create`, params)
  },

  //更新某种类型汇报的配置
  postUpdateReportSetting(params) {
    return http.post(`${request}/update`, params)
  },

  //查看某群所有类型汇报的配置
  getAllSettingByGroupId(groupId ) {
    return http.get(`${request}/getGroupReportReminder/` + groupId )
  },

  // 查看某群某类型汇报的配置
  getSingleSettingByGroupId(groupId,type) {
    return http.get(`${request}/getReportReminder/` + groupId +'/'+ type )
  },

  // 查询某用户某类汇报的最少字数（日，周，月，年报）
  getMaxOfMinLengthOfReport (reportType) {
    return http.get(`${request}/getMinLength/` + reportType);
  }

}

export default report_reminder
